package com.woniuxy.third.mapper;

import com.woniuxy.third.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: yangtao
 * @date 2021/7/20 18:31
 * @Version 1.0
 */
@Mapper
public interface OrderMapper {
    List<Order> findAll();

    List<Order> findAllByid(int uid);

    int addOrder(Order order);

    int orderstatus(@Param("id") int id,@Param("status") int status);

    Order findByoid(int uid);
}
